package tests;

import common.Utils;
import org.openqa.selenium.By;

public class DetailPage extends Utils {
    private static String url = "http://139.196.34.232:8080/blog_detail.html?blogId=5";   //这个博客详情页面, 万一这个博客被删除了怎么办?  暂时先不管
    public DetailPage() {
        super(url);
    }

    public void DetailPageRight(){
        //局限性有些大
        //就看看url对不对吧
        driver.findElement(By.cssSelector("body > div.nav > a:nth-child(4)"));
        String url = driver.getCurrentUrl();
        assert url.equals("http://139.196.34.232:8080/blog_detail.html?blogId=5");

        driver.quit();

    }
}
